﻿using System.Data;

namespace Smatime.Web.Models
{
    public class StaffGotgetCheckList : BaseEntity
    {
        public long StaffId { get; set; }
        public string StampDate { get; set; }
        public string StaffName { get; set; }
        public string ContractType { get; set; }
        public string StoreName { get; set; }
        public long StoreId { get; set; }

        public override BaseEntity FromDataRow(DataRow row)
        {
            StaffId = (long) row["StaffId"];
            StampDate = row["StampDate"].ToString();
            StaffName = row["StaffName"].ToString();
            ContractType = row["ContractType"].ToString();
            StoreName = row["StoreName"].ToString();
            StoreId = (long) row["StoreId"];

            return base.FromDataRow(row);
        }

        public override void ToDataRow(DataRow row)
        {
            base.ToDataRow(row);
        }
    }
}